<%@ page language="java" contentType="text/html; charset=UTF-8"
   pageEncoding="UTF-8"%>   
   <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
   <%-- <link rel="stylesheet" href="${initParam.root}css/3pig.css" type="text/css"> --%>
<div class="topMenu" align="right">
<style type="text/css">a{text-decoration:none}</style>   
   <c:choose>
      <c:when test="${sessionScope.login==null}">
         <a href="${initParam.root}common/login_view.do">로그인</a> /
        <a href="${initParam.root}common/find_Id_view.do">아이디 찾기</a> / 
      <a href="${initParam.root}common/find_Password_view.do">비밀번호 찾기</a> /
      <a href="${initParam.root}common/register_view.do ">회원가입</a> /
      <a href="${initParam.root}admin/admin_Login_view.do">관리자로그인</a>
   </c:when>
      <c:when test="${sessionScope.login.authNumber==11}">
         <a href="${initParam.root}common/logout.do">로그아웃</a> /
      <a href="${initParam.root }common/auth_update_MemberInfo.do?check=seller">판매자   회원정보 수정</a> /
      <a href="${initParam.root }seller/auth_getCategoryKind.do">판매자 상품등록</a> / 
      <a href="${initParam.root }seller/auth_showDealListBySeller.do">등록한 상품리스트 보기</a> /
      <a href="${initParam.root }seller/auth_seller_Dealhistory.do">판매내역</a> /
         <a href="${initParam.root }common/auth_postList.do?auth=${sessionScope.login.authNumber}&id=${sessionScope.login.sellerId }&post=send">보낸 쪽지함</a>/
      <a href="${initParam.root }common/auth_postList.do?auth=${sessionScope.login.authNumber}&id=${sessionScope.login.sellerId }&post=receive">받은 쪽지함</a>/
      <a href="${initParam.root}common/sendMessage.do?sender=seller" onClick="window.open(this.href, '', 'width=500, height=400'); return false;">관리자문의</a>
      </c:when>
      <c:when test="${sessionScope.login.authNumber==100}">
         <a href="${initParam.root}common/logout.do">로그아웃</a> /
           <a href="${initParam.root }admin/auth_findcustomerList.do?check=customer">구매자리스트</a>/
            <a href="${initParam.root }admin/auth_findsellerList.do?check=seller">판매자리스트</a>/
       <a href="${initParam.root }common/auth_postList.do?auth=${sessionScope.login.authNumber}&id=${sessionScope.login.adminId }&post=send">보낸 쪽지함</a>/
      <a href="${initParam.root }common/auth_postList.do?auth=${sessionScope.login.authNumber}&id=${sessionScope.login.adminId }&post=receive">받은 쪽지함</a>/
      </c:when>
      <c:otherwise>
         <a href="${initParam.root}common/logout.do">로그아웃</a> /
         <a href="${initParam.root}customer/auth_cart_List.do?customerId=${sessionScope.login.customerId } ">장바구니</a>/
      <a href="${initParam.root }customer/auth_buyCheck.do?customerId=${sessionScope.login.customerId } ">구매내역</a>/
      <a href="${initParam.root }common/auth_update_MemberInfo.do?check=customer">구매자회원정보 수정</a> /   
             <a href="${initParam.root }common/auth_postList.do?auth=${sessionScope.login.authNumber}&id=${sessionScope.login.customerId }&post=send">보낸 쪽지함</a>/
      <a href="${initParam.root }common/auth_postList.do?auth=${sessionScope.login.authNumber}&id=${sessionScope.login.customerId }&post=receive">받은 쪽지함</a>/
      <a href="${initParam.root}common/sendMessage.do?sender=customer" onClick="window.open(this.href, '', 'width=500, height=400'); return false;">관리자문의</a>
      </c:otherwise>
   </c:choose>
   </div>   
 
   <script type="text/javascript">
   $(document).ready(function(){
   $("#searchBtn").click(function(){
      location.href="${initParam.root }common/find_DealByTitle.do?dealName="+$(":input[name=dealName]").val();
   });//click
});//ready
   </script>
<hr size="2" />
<div>
   <a href="${initParam.root}common/allList.do">
    <img src="${initParam.root }img/main_pig.jpg" width="250px" height="50px" /></a>
    <span id="a">
      <input type="text" name="dealName"><input type="button" id="searchBtn"   value="Search">
      </span>
</div> 


